<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>Title</title>
</head>
<body>
<script>
    setTimeout(function () {
        console.log('异步任务')
    })
    console.log('同步任务')
</script>
</body>
</html>